package com.huika.dealontop.support.domain;

import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Author: Victor Wu
 * Email: victor-wu*foxmail.com
 * Time: 2015/11/13 17:22
 * Description: 订单详情
 */
public class OrderDetailBean {

    /**
     * picUrl : http://192.168.16.218/pm1/M00/08/94/wKgQ2lYndOiAA-YrAAB3g2efYtM462.jpg
     * merchantID : 9770717269
     * productID : 9770717303
     * productName : 30001ผง 7 พิพิธภัณฑ์ .
     * couponPrice : 70.0
     * copies : 1
     * orderID : 10724416535
     * orderDetailsID : 10724416536
     * skuID : 9770717305
     * totalPrice : 70.00
     * orderStatus : 2
     * iscomment : 0
     * isReturn : 0
     * placeAnOrderTime : 1447812930000
     * validTime : 1448816400000
     * data : [{"ticketId":"10724416540","couponCode":"108235832648","couponStatus":"4","couponTime":null}]
     */

    private String picUrl;
    private String merchantID;
    private String productID;
    private String productName;
    private double couponPrice;
    private int copies;
    private String orderID;
    private String orderDetailsID;
    private String skuID;
    private double totalPrice;
    private int orderStatus;
    private int iscomment;
    private int isReturn;
    private long placeAnOrderTime;
    private long validTime;
    private String paymentOrderId;
    private boolean IsSale;
    /**
     * ticketId : 10724416540
     * couponCode : 108235832648
     * couponStatus : 4
     * couponTime : null
     */

    private ArrayList<DataBean> data;

    public String getPaymentOrderId() {
        return paymentOrderId;
    }

    public void setPaymentOrderId(String paymentOrderId) {
        this.paymentOrderId = paymentOrderId;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public void setMerchantID(String merchantID) {
        this.merchantID = merchantID;
    }

    public void setProductID(String productID) {
        this.productID = productID;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setCouponPrice(double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public void setCopies(int copies) {
        this.copies = copies;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public void setOrderDetailsID(String orderDetailsID) {
        this.orderDetailsID = orderDetailsID;
    }

    public void setSkuID(String skuID) {
        this.skuID = skuID;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public void setIscomment(int iscomment) {
        this.iscomment = iscomment;
    }

    public void setIsReturn(int isReturn) {
        this.isReturn = isReturn;
    }

    public void setPlaceAnOrderTime(long placeAnOrderTime) {
        this.placeAnOrderTime = placeAnOrderTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public void setData(ArrayList<DataBean> data) {
        this.data = data;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public String getMerchantID() {
        return merchantID;
    }

    public String getProductID() {
        return productID;
    }

    public String getProductName() {
        return productName;
    }

    public double getCouponPrice() {
        return couponPrice;
    }

    public int getCopies() {
        return copies;
    }

    public String getOrderID() {
        return orderID;
    }

    public String getOrderDetailsID() {
        return orderDetailsID;
    }

    public String getSkuID() {
        return skuID;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public int getIscomment() {
        return iscomment;
    }

    public int getIsReturn() {
        return isReturn;
    }

    public long getPlaceAnOrderTime() {
        return placeAnOrderTime;
    }

    public long getValidTime() {
        return validTime;
    }

    public ArrayList<DataBean> getData() {
        return data;
    }

    public boolean isSale() {
        return IsSale;
    }

    public void setIsSale(boolean isSale) {
        IsSale = isSale;
    }

    public static class DataBean implements Parcelable {
        private String ticketId;
        private String couponCode;
        private int couponStatus;
        private String couponTime;

        public void setTicketId(String ticketId) {
            this.ticketId = ticketId;
        }

        public void setCouponCode(String couponCode) {
            this.couponCode = couponCode;
        }

        public void setCouponStatus(int couponStatus) {
            this.couponStatus = couponStatus;
        }

        public void setCouponTime(String couponTime) {
            this.couponTime = couponTime;
        }

        public String getTicketId() {
            return ticketId;
        }

        public String getCouponCode() {
            return couponCode;
        }

        public int getCouponStatus() {
            return couponStatus;
        }

        public String getCouponTime() {
            return couponTime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.ticketId);
            dest.writeString(this.couponCode);
            dest.writeInt(this.couponStatus);
            dest.writeString(this.couponTime);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.ticketId = in.readString();
            this.couponCode = in.readString();
            this.couponStatus = in.readInt();
            this.couponTime = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    ////////////////////////得到订单状态后  手动设置的数据//////////////////////////
    private OrderStateActionHolder actionHolder;

    public OrderStateActionHolder getActionHolder() {
        return actionHolder;
    }

    public void setActionHolder(OrderStateActionHolder actionHolder) {
        this.actionHolder = actionHolder;
    }

    public static class OrderStateActionHolder {
        //显示的状态
        public String stateStr;
        //按钮显示文字
        public String btnStr;
        //按钮点击意图
        public Intent action;
    }
    ////////////////////////得到订单状态后  手动设置的数据//////////////////////////
}
